﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UIFW;


public class LobbyUIForm :  BaseUIForm{


    public void Awake()
    {
        CurrentUIType.uiShowMode = UIShowMode.HideOther;

        //设置用户名
        Text text;
        text = Helper.findChildNodeObj(gameObject, "UserName").GetComponent<Text>();
        text.text = DemoProject.StartGame.dataLoad.playerInfo.name;

        rigisterButtonEvent("BtnHelp",
            p =>
            {

            }
            );

        rigisterButtonEvent("BtnSingle",
            p =>
            {


                Debug.Log("enter SingleUIForm");
                closeUIForm();

            }
            );

        rigisterButtonEvent("BtnMulti",
            p =>
            {


                closeUIForm();
                openUIForm("MatchUIForm");

                
            }
            );

        
    }
    
}
